import request from "@/utills/request";


export  const getTenHotJob=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/getTenHotJob",
    data,
  })
}

// 获取用户当前所在地数据
export const getUserAddress=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/getUserAddress",
    data,
  })
}
// 将审核结果提交
export const adminAuditedJobs=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminAuditedJobs",
    data,
  })
}
// 查看具体岗位信息
export const adminPreAuditJobs=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminPreAuditJobs",
    data,
  })
}

export const adminGetAuditJobs=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminGetAuditJobs",
    data,
  })
}
export const adminPreAuditEnterprise=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminPreAuditEnterprise",
    data,
  })
}
export const adminAuditedEnterprise=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminAuditedEnterprise",
    data,
  })
}
export const adminGetAuditEnterprise=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminGetAuditEnterprise",
    data,
  })
}
// 管理员撤销发布的岗位
export const adminRevokeJob=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminRevokeJob",
    data,
  })
}
export const adminInitPwd=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminInitPwd",
    data,
  })
}
export const adminDelectHR=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminDelectHR",
    data,
  })
}
export const adminDelectEnterprise=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminDelectEnterprise",
    data,
  })
}
export const adminGetAllJobs=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminGetAllJobs",
    data,
  })
}
export const adminGetAllUsers=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminGetAllUsers",
    data,
  })
}
export const adminAddEnterprise=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminAddEnterprise",
    data,
  })
}
export const adminGetALLHRs=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminGetALLHRs",
    data,
  })
}
export const adminGetALLEs=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/adminGetALLEs",
    data,
  })
}
export const upAdminInfo=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/upAdminInfo",
    data,
  })
}
export const upAdminPwd=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/upAdminPwd",
    data,
  })
}
export const getAdminInfo=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/getAdminInfo",
    data,
  })
}
export const getAdminAvatar=(data:any)=>{
  return request({
    method:"POST",
    url:"/api/admin/getAdminAvatar",
    responseType:"blob",
    data,
  })
}

